<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
  <%-- [扩展JS] --%>
<script type="text/javascript" src="${staticPath }/static/jquery.validate-all.js" charset="utf-8"></script>
<script type="text/javascript">
    $(function() {

        $('#userAddOrganizationId').combotree({
            url : '${path }/organization/tree',
            parentField : 'pid',
            lines : true,
            panelHeight : 'auto'
        });

        $('#editUserAddChargeForm').form({
            url : '${path }/appVip/edit',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    parent.$.modalDialog.handler.dialog('close');
                    searchDataGridTree();
                } else {
                    parent.$.messager.alert('错误', result.msg, 'error');
                }
            }
        });

    });
</script>

<div class="easyui-layout" data-options="fit:true,border:false" >
    <div data-options="region:'center',border:false" style="overflow: hidden;padding: 3px;" >
        <form id="editUserAddChargeForm" method="post">
            <table class="grid">
                <tr>
                    <td>当前账号</td>
                    <td>
                        <input name="id" type="hidden" value="${user.id}">
                        <input name="登录名" value="${user.loginName}" type="hidden"  >
                        ${user.loginName}
                    </td>
                </tr>
                <tr>
                    <td>重置密码</td>
                    <td><input name="password" type="text" class="easyui-validatebox span2" data-options="required:true" value="123456"></td>
                </tr>
           <%--     <tr>
                    <td>用户状态</td>
                    <td><input name="user_type" placeholder="请输入用户状态" class="easyui-validatebox span2"  required="required"  ></td>
                </tr>--%>
            </table>
        </form>
    </div>
</div>